package com.jd.learn.event.spring;

import org.springframework.context.ApplicationEvent;

/**
 * 自定义事件
 * @author shenkaiwen5
 * @version 1.0
 * @date 2021/1/13
 */
public class ApplicationEventTest extends ApplicationEvent {
    public ApplicationEventTest(Object source) {
        super(source);
    }

    public void pringMsg(String msg) {
        System.out.println("监听到事件 ：" + msg);
    }
}
